package ua.kpi_java_training5.alekseenko.src.module2;

/**
 * Author: Aleksey Alekseenko
 * Date: 04.06.13
 */
public class Aquarium {
    private int length;
    private int height;
    FishFactory fishFactory;

    public Aquarium(int length, int height) {
        this.height = height;
        this.length = length;
        fishFactory = new FishFactory(this.length, this.height);
        for (int index = 0; index < fishFactory.victims.size(); index++) {
            fishFactory.victims.get(index).aquarium = Aquarium.this;
        }
        for (int index = 0; index < fishFactory.predators.size(); index++) {
            fishFactory.predators.get(index).aquarium = Aquarium.this;
        }
    }

    public int getLength() {
        return this.length;
    }

    public int getHeight() {
        return this.height;
    }

}
